/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class DotMatrixScreen {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010100001';
    }

    get categoryName() {
        return '\u70b9\u9635\u5c4f';
    }

    getBrightness(params) {
        return command({
            method: 'getBrightness',
            methodId: 'p1vZoyCZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getImage(params) {
        return command({
            method: 'getImage',
            methodId: 'pgh0GHIS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pGoxzjSd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getText(params) {
        return command({
            method: 'getText',
            methodId: 'pDrhqilL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBrightness(params) {
        return command({
            method: 'setBrightness',
            methodId: 'pZgu6Aqr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setImage(params) {
        return command({
            method: 'setImage',
            methodId: 'pUPQhC0A',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3FwFU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setText(params) {
        return command({
            method: 'setText',
            methodId: 'ppAraUhC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default DotMatrixScreen;
